Platform Explorer / Nuxeo Platform 2023.23

Component org.nuxeo.ecm.platform.notification.document.routing.NotificationContrib

Requirements

Resolution Order

752
The resolution order represents the order in which this component has been resolved by the Nuxeo Runtime framework.
You can influence this order by adding "require" tags in your component declaration, to make sure it is resolved after another component.

Contributions

XML Source

<?xml version="1.0"?>

<component
  name="org.nuxeo.ecm.platform.notification.document.routing.NotificationContrib">

  <require>org.nuxeo.ecm.platform.notification.service.NotificationContrib</require>

  <extension
    target="org.nuxeo.ecm.platform.ec.notification.service.NotificationService"
    point="notifications">

    <notification name="Task assigned" enabled="false" >
      <event name="workflowTaskAssigned"/>
    </notification>
    <notification name="Task assigned" channel="email" enabled="true" availableIn="Workspace"
      autoSubscribed="true" template="workflowTaskAssigned" templateExpr="NotificationContext['taskInstance'].getVariable('taskNotificationTemplate')" subject="Task Assigned for ${docTitle}"
      label="label.nuxeo.notifications.appReviewStarted">
      <event name="workflowTaskAssigned"/>
    </notification>

   <notification name="Task reassigned" channel="email" enabled="true" availableIn="Workspace"
      autoSubscribed="true" template="workflowTaskAssigned" templateExpr="NotificationContext['taskInstance'].getVariable('taskNotificationTemplate')" subject="Task Reassigned on ${docTitle}"
      label="label.nuxeo.notifications.appReviewStarted">
      <event name="workflowTaskReassigned"/>
    </notification>

   <notification name="Task delegated" channel="email" enabled="true" availableIn="Workspace"
      autoSubscribed="true" template="workflowTaskDelegated"  subject="Task Delegated on ${docTitle}"
      label="label.nuxeo.notifications.appReviewStarted">
      <event name="workflowTaskDelegated"/>
    </notification>

  </extension>

</component>